package com.hangim.pce.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.hangim.pce.common.domain.IdEntity;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-19
 */
@TableName("med_prescription")
public class MedPrescription extends IdEntity {

    /**
     * 每个医院(机构)唯一标识id
     */
    @TableField("access_key_id")
    private String accessKeyId;
    /**
     * 鉴权使用
     */
    @TableField("access_key")
    private String accessKey;
    /**
     * 就诊编号，非必填
     */
    @TableField("visit_no")
    private String visitNo;
    /**
     * 就诊科室，必填
     */
    @TableField("visit_dep")
    private String visitDep;
    /**
     * 就诊科室Id
     */
    @TableField("visit_dep_id")
    private Long visitDepId;
    /**
     * 医院处方Id
     */
    @TableField("recipe_id")
    private Long recipeId;
    /**
     * 处方状态 ，0: 医生已开处方未审核；1: 医生已开处方，药师审核通过；2: 医生已开处方，药师审核不通过；3:处方已经在院内支付完成
     */
    @TableField("recipe_status")
    private Integer recipeStatus;
    /**
     * 医院处方笺号
     */
    @TableField("recipe_no")
    private String recipeNo;
    /**
     * 医生id
     */
    @TableField("doctor_id")
    private String doctorId;
    /**
     * 医生编号
     */
    @TableField("doctor_no")
    private String doctorNo;
    /**
     * 医生名称
     */
    @TableField("doctor_name")
    private String doctorName;
    /**
     * 用户账号或诊疗卡编号
     */
    @TableField("user_account")
    private String userAccount;
    /**
     * 用户姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 用户身份证
     */
    @TableField("user_sfzh")
    private String userSfzh;
    /**
     * 用户电话
     */
    @TableField("user_telphone")
    private String userTelphone;
    /**
     * 用户住址
     */
    @TableField("user_address")
    private String userAddress;
    /**
     * 用户性别，女：0，男：1
     */
    private Integer sex;
    /**
     * 用户年龄
     */
    @TableField("user_age")
    private String userAge;
    /**
     * 2: 新生儿（28天以内）单位“天” ，1: 婴儿（28天-1周岁）、幼儿（1周到3周岁）单位“月-1”，0: 3周岁以上单位“年”
     */
    @TableField("user_age_unit")
    private Integer userAgeUnit;
    /**
     * 主诉
     */
    @TableField("main_suit")
    private String mainSuit;
    /**
     * 简要病史
     */
    @TableField("brief_history")
    private String briefHistory;
    /**
     * 诊断
     */
    @TableField("diagnose_detail")
    private String diagnoseDetail;
    /**
     * ICD-10诊断编码
     */
    @TableField("diagnose_code")
    private String diagnoseCode;
    /**
     * 用药注意事项
     */
    @TableField("use_drug_attention")
    private String useDrugAttention;
    /**
     * 是否有药物过敏史：0无 1有，默认0
     */
    private Integer ywgms;
    /**
     * 药物过敏史名称
     */
    @TableField("ywgms_name")
    private String ywgmsName;
    /**
     * 是否是特殊人群：0否 1是
     */
    private Integer tsrq;
    /**
     * 特殊人群种类：1:孕妇 2:产妇 3:哺乳期妇女
     */
    @TableField("tsrq_type")
    private Integer tsrqType;
    /**
     * 是否有肝功能不全:0否 1是
     */
    private Integer ggnbq;
    /**
     * 是否有肾功能不全：0否 1是
     */
    private Integer sgnbq;
    /**
     * 是否有高血压病史：0否 1是
     */
    private Integer gxybs;
    /**
     * 高血压病史等级：1 一级高血压 2 二级高血压 3 三级高血压
     */
    @TableField("gxybs_level")
    private Integer gxybsLevel;
    /**
     * 是否有糖尿病史：0否 1是
     */
    private Integer tnbs;
    /**
     * 糖尿病史类别，1：1型糖尿病 2：2型糖尿病 3： 妊娠糖尿病 4：继发性糖尿病:5： 其他特殊类型糖尿病
     */
    @TableField("tnbs_type")
    private Integer tnbsType;
    /**
     * 是否有心脏病史：0否 1是
     */
    private Integer xzbs;
    /**
     * 是否有其他特殊疾病：0否 1是
     */
    private Integer qttsjb;
    /**
     * 其他特殊疾病名称
     */
    @TableField("qttsjb_name")
    private String qttsjbName;
    /**
     * 处方类型：1西药处方 2中药处方
     */
    @TableField("recipe_nype")
    private Integer recipeNype;
    /**
     * 状态
     */
    private Integer active;
    /**
     * 创建时间
     */
    @TableField("created_date")
    private Date createdDate;
    /**
     * 创建人
     */
    @TableField("created_by")
    private String createdBy;
    /**
     * 更新时间
     */
    @TableField("updated_date")
    private Date updatedDate;
    /**
     * 更新人
     */
    @TableField("updated_by")
    private String updatedBy;

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getVisitNo() {
        return visitNo;
    }

    public void setVisitNo(String visitNo) {
        this.visitNo = visitNo;
    }

    public String getVisitDep() {
        return visitDep;
    }

    public void setVisitDep(String visitDep) {
        this.visitDep = visitDep;
    }

    public Long getVisitDepId() {
        return visitDepId;
    }

    public void setVisitDepId(Long visitDepId) {
        this.visitDepId = visitDepId;
    }

    public Long getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(Long recipeId) {
        this.recipeId = recipeId;
    }

    public Integer getRecipeStatus() {
        return recipeStatus;
    }

    public void setRecipeStatus(Integer recipeStatus) {
        this.recipeStatus = recipeStatus;
    }

    public String getRecipeNo() {
        return recipeNo;
    }

    public void setRecipeNo(String recipeNo) {
        this.recipeNo = recipeNo;
    }

    public String getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(String doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctorNo() {
        return doctorNo;
    }

    public void setDoctorNo(String doctorNo) {
        this.doctorNo = doctorNo;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserSfzh() {
        return userSfzh;
    }

    public void setUserSfzh(String userSfzh) {
        this.userSfzh = userSfzh;
    }

    public String getUserTelphone() {
        return userTelphone;
    }

    public void setUserTelphone(String userTelphone) {
        this.userTelphone = userTelphone;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getUserAge() {
        return userAge;
    }

    public void setUserAge(String userAge) {
        this.userAge = userAge;
    }

    public Integer getUserAgeUnit() {
        return userAgeUnit;
    }

    public void setUserAgeUnit(Integer userAgeUnit) {
        this.userAgeUnit = userAgeUnit;
    }

    public String getMainSuit() {
        return mainSuit;
    }

    public void setMainSuit(String mainSuit) {
        this.mainSuit = mainSuit;
    }

    public String getBriefHistory() {
        return briefHistory;
    }

    public void setBriefHistory(String briefHistory) {
        this.briefHistory = briefHistory;
    }

    public String getDiagnoseDetail() {
        return diagnoseDetail;
    }

    public void setDiagnoseDetail(String diagnoseDetail) {
        this.diagnoseDetail = diagnoseDetail;
    }

    public String getDiagnoseCode() {
        return diagnoseCode;
    }

    public void setDiagnoseCode(String diagnoseCode) {
        this.diagnoseCode = diagnoseCode;
    }

    public String getUseDrugAttention() {
        return useDrugAttention;
    }

    public void setUseDrugAttention(String useDrugAttention) {
        this.useDrugAttention = useDrugAttention;
    }

    public Integer getYwgms() {
        return ywgms;
    }

    public void setYwgms(Integer ywgms) {
        this.ywgms = ywgms;
    }

    public String getYwgmsName() {
        return ywgmsName;
    }

    public void setYwgmsName(String ywgmsName) {
        this.ywgmsName = ywgmsName;
    }

    public Integer getTsrq() {
        return tsrq;
    }

    public void setTsrq(Integer tsrq) {
        this.tsrq = tsrq;
    }

    public Integer getTsrqType() {
        return tsrqType;
    }

    public void setTsrqType(Integer tsrqType) {
        this.tsrqType = tsrqType;
    }

    public Integer getGgnbq() {
        return ggnbq;
    }

    public void setGgnbq(Integer ggnbq) {
        this.ggnbq = ggnbq;
    }

    public Integer getSgnbq() {
        return sgnbq;
    }

    public void setSgnbq(Integer sgnbq) {
        this.sgnbq = sgnbq;
    }

    public Integer getGxybs() {
        return gxybs;
    }

    public void setGxybs(Integer gxybs) {
        this.gxybs = gxybs;
    }

    public Integer getGxybsLevel() {
        return gxybsLevel;
    }

    public void setGxybsLevel(Integer gxybsLevel) {
        this.gxybsLevel = gxybsLevel;
    }

    public Integer getTnbs() {
        return tnbs;
    }

    public void setTnbs(Integer tnbs) {
        this.tnbs = tnbs;
    }

    public Integer getTnbsType() {
        return tnbsType;
    }

    public void setTnbsType(Integer tnbsType) {
        this.tnbsType = tnbsType;
    }

    public Integer getXzbs() {
        return xzbs;
    }

    public void setXzbs(Integer xzbs) {
        this.xzbs = xzbs;
    }

    public Integer getQttsjb() {
        return qttsjb;
    }

    public void setQttsjb(Integer qttsjb) {
        this.qttsjb = qttsjb;
    }

    public String getQttsjbName() {
        return qttsjbName;
    }

    public void setQttsjbName(String qttsjbName) {
        this.qttsjbName = qttsjbName;
    }

    public Integer getRecipeNype() {
        return recipeNype;
    }

    public void setRecipeNype(Integer recipeNype) {
        this.recipeNype = recipeNype;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public String toString() {
        return "MedPrescription{" +
                ", id=" + id +
                ", accessKeyId=" + accessKeyId +
                ", accessKey=" + accessKey +
                ", visitNo=" + visitNo +
                ", visitDep=" + visitDep +
                ", visitDepId=" + visitDepId +
                ", recipeId=" + recipeId +
                ", recipeStatus=" + recipeStatus +
                ", recipeNo=" + recipeNo +
                ", doctorId=" + doctorId +
                ", doctorNo=" + doctorNo +
                ", doctorName=" + doctorName +
                ", userAccount=" + userAccount +
                ", userName=" + userName +
                ", userSfzh=" + userSfzh +
                ", userTelphone=" + userTelphone +
                ", userAddress=" + userAddress +
                ", sex=" + sex +
                ", userAge=" + userAge +
                ", userAgeUnit=" + userAgeUnit +
                ", mainSuit=" + mainSuit +
                ", briefHistory=" + briefHistory +
                ", diagnoseDetail=" + diagnoseDetail +
                ", diagnoseCode=" + diagnoseCode +
                ", useDrugAttention=" + useDrugAttention +
                ", ywgms=" + ywgms +
                ", ywgmsName=" + ywgmsName +
                ", tsrq=" + tsrq +
                ", tsrqType=" + tsrqType +
                ", ggnbq=" + ggnbq +
                ", sgnbq=" + sgnbq +
                ", gxybs=" + gxybs +
                ", gxybsLevel=" + gxybsLevel +
                ", tnbs=" + tnbs +
                ", tnbsType=" + tnbsType +
                ", xzbs=" + xzbs +
                ", qttsjb=" + qttsjb +
                ", qttsjbName=" + qttsjbName +
                ", recipeNype=" + recipeNype +
                ", active=" + active +
                ", createdDate=" + createdDate +
                ", createdBy=" + createdBy +
                ", updatedDate=" + updatedDate +
                ", updatedBy=" + updatedBy +
                "}";
    }
}
